//var year = 19;
//if (year >=18)
//{
// console.log("您已成年")
//}else{
//  console.log("狗比你还没成年呢")
// }

  var uname ="root",upwd ="123456";
if (uname === "root" && upwd === "123456")
{
	console.log("登录成功")
  }
else if(uname != "root" || upwd != "123456")
	{
console.log("账号或密码错误")
  }
 var sex = 0;
 if (sex === 1)
 {
	 console.log("男")
 }else{
	 console.log("女")
	 };
console.log(sex ? "男":"女");
var c = sex===1?"nan":"nv";
console.log(c);